package com.jonychen.swagger2demo.common.entity.vo;

import java.io.Serializable;

/**
 * @Description:封装httpClient响应结果
 * @Author: kui.chen@100credit.com
 * @Date: 2019/9/7 20:05
 */
public class HttpClientResult implements Serializable {

    /**
     * 响应状态码
     */
    private int code;

    /**
     * 响应数据
     */
    private String content;

    public HttpClientResult(int code) {
        this.code = code;
    }

    public HttpClientResult(int code, String content) {
        this.code = code;
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("HttpClientResult{");
        sb.append("code=").append(code);
        sb.append(", content='").append(content).append('\'');
        sb.append('}');
        return sb.toString();
    }
}